package com.tianji.api.client.remark.fallback;

import com.tianji.api.client.remark.LikedClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;

/**
 * TODO
 *
 * @Author whx
 * @Date 2025/1/3 17:00
 */
@Slf4j
public class LikedClientFallback implements FallbackFactory<LikedClient> {
    @Override
    public LikedClient create(Throwable cause) {
        log.error("查询点赞服务异常", cause);
        return new LikedClient() {

            @Override
            public List<Long> likedBizList(List<Long> bizIds) {
                return null;
            }
        };
    }
}
